package my_servlet;

import jakarta.servlet.*;

import java.io.IOException;
import java.io.PrintWriter;

/**
 * config是什么？
 * 是servlet中的一员，也是一个接口
 */
public class servlet_02 extends GenericServlet {
    @Override
    public void service(ServletRequest servletRequest, ServletResponse servletResponse) throws ServletException, IOException {
        ServletResponse sr = servletResponse;
        sr.setContentType("text/html");
        PrintWriter out = sr.getWriter();

        ServletConfig sc = this.getServletConfig();
        out.print(" ServletConfig: "+sc);
    }
}
//my_servlet/servlet_02.java:23